#app {

  // 主体区域
  .main-container {
    min-height: 100%;
    transition: margin-left .28s;
    margin-left: 200px;
  }

  // 侧边栏
  .sidebar-container {
    transition: width .28s;
    width: 200px;
    height: 100%;
    position: fixed;
    font-size: 0px;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1001;
    overflow: hidden;
    padding-top: 60px;

    .horizontal-collapse-transition {
      transition: 0s width ease-in-out, 0s padding-left ease-in-out, 0s padding-right ease-in-out;
    }

    .logo_box {
      height: 60px;
      position: absolute;
      left: 0;
      top: 0;
      width: 200px;
      background-color: #304156;
      border-bottom: 1px solid $subMenuBg;
      display: flex;
      flex-direction: row;
      padding: 0 10px;
      overflow: hidden;
      transition: width 0.28s;

      .img_box {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        overflow: hidden;
        flex-shrink: 0;
        margin-top: 10px;

        img {
          width: 100%;
          height: 100%;
          object-fit: cover;
        }
      }

      h1 {
        color: #fff;
        flex: 1;
        line-height: 60px;
        font-size: 20px;
        margin: 0;
        transition: opacity 0.28s;
        text-align: center;
      }
    }

    .svg-icon {
      margin-right: 12px;
      color: rgb(191, 203, 217);
    }

    .el-menu {
      border: none;

      .el-menu-item {
        text-align: left;

        .el-tooltip {
          padding-left: 10px;
        }
      }
    }
  }

  .hideSidebar {
    .logo_box {
      width: 64px;

      h1 {
        opacity: 0;
      }
    }

    .sidebar-container {
      width: 64px;
    }

    .main-container {
      margin-left: 64px;
    }

    .submenu-title-noDropdown {
      padding-left: 10px;
      position: relative;

      .el-tooltip {
        padding: 0 10px;
      }
    }

    .el-submenu {
      &>.el-submenu__title {
        padding-left: 10px;

        &>span {
          height: 0;
          width: 0;
          overflow: hidden;
          visibility: hidden;
          display: inline-block;
        }

        .el-submenu__icon-arrow {
          display: none;
        }
      }
    }
  }

  .sidebar-container .el-submenu {
    .el-submenu__title {
      text-align: left;
    }

    .el-menu-item {
      min-width: 200px;
      background-color: $subMenuBg !important;
      padding-left: 57px !important;

      &:hover {
        background-color: $menuHover !important;
      }
    }
  }

  .el-menu--collapse .el-menu .el-submenu {
    min-width: 200px;
  }

  //适配移动端
  .mobile {
    .main-container {
      margin-left: 0px;
    }

    .sidebar-container {
      top: 50px;
      transition: transform .28s;
      width: 200px;
    }

    &.hideSidebar {
      .sidebar-container {
        transition-duration: 0.3s;
        transform: translate3d(-200px, 0, 0);
      }
    }
  }

  .withoutAnimation {

    .main-container,
    .sidebar-container {
      transition: none;
    }
  }
}
